package com.atguigu.hello.service;

import com.atguigu.hello.bean.HelloProperties;
import org.springframework.beans.factory.annotation.Autowired;

/**
 *  默认不要放在容器中
 * @author : leimingchao
 * @date Date : 2021年11月22日 22:49
 */
public class HelloService {

    @Autowired
    private HelloProperties helloProperties;

    public String sayHello(String username) {
        return helloProperties.getPrefix() + ":" + username + ":" + helloProperties.getSuffix();
    }
}
